package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.base.R;
import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.entity.CmactivationCode;
import com.mybatisflex.core.service.IService;

import java.time.LocalDateTime;

/**
 * 门店激活码详情表 服务层。
 *
 * @author EDY
 * @since 2025-10-29
 */
public interface CmactivationCodeService extends IService<CmactivationCode> {
    R<Object> pageList(PageUtil pageUtil, String corpUid, String storeUid, String staffUid, String staffName);

    Long getCodeNum(String corpUid, String storeUid, String activationTypeUid);

    Boolean getCodeForActivate(
            String corpUid, String storeUid, String activationTypeUid,
            String orderCode, String serviceUid, String memberUid, String memberName, LocalDateTime usedTime,
            String staffUid, String staffName);

}
